package com.ruoyi.monitor.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 定时子任务对象 auto_send_task
 * 
 * @author xzx
 * @date 2023-03-31
 */
public class AutoSendTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 子任务id */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 模板id */
    @Excel(name = "模板id")
    private Long modelId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 父任务id */
    @Excel(name = "父任务id")
    private Long jobId;

    @TableField(exist = false)
    private SysUser user;

    /**
     * search_value,create_by,create_time,update_by,update_time,remark,params
     * @param id
     */
    @TableField(exist = false)
    private String searchValue;

    @TableField(exist = false)
    private String createBy;

    @TableField(exist = false)
    private Date createTime;

    @TableField(exist = false)
    private String updateBy;

    @TableField(exist = false)
    private Date updateTime;

    @TableField(exist = false)
    private String remark;

    @TableField(exist = false)
    private String params;

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setModelId(Long modelId) 
    {
        this.modelId = modelId;
    }

    public Long getModelId() 
    {
        return modelId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setJobId(Long jobId) 
    {
        this.jobId = jobId;
    }

    public Long getJobId() 
    {
        return jobId;
    }

    @Override
    public String toString() {
        return "AutoSendTask{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", modelId=" + modelId +
                ", userId=" + userId +
                ", jobId=" + jobId +
                ", user=" + user +
                '}';
    }
}
